package cn.hcbycloud.auth;

import cn.hcbycloud.common.async.service.AsyncTaskManagerService;
import cn.hcbycloud.common.async.service.IAsyncService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @author gaoh
 * @desc
 * @date 2022年02月07日 下午 12:53
 */
@SpringBootTest
@RunWith(SpringRunner.class)
public class HcbyService {

    @Autowired
    AsyncTaskManagerService asyncTaskManagerService;
    @Autowired
    IAsyncService asyncService;
    @Autowired
    IAsyncService asyncServiceTwo;
    @Test
    public void contextLoad() {
        asyncTaskManagerService.submit(asyncService);
        asyncTaskManagerService.submit(asyncServiceTwo);
    }
}